package strategy;

public class Client {

    public static void main(String[] args) {
        //测试
        Duck duck = new ToyDuck();
        duck.display();
        duck.fly();
        duck.swim();
        duck.quack();

        duck = new WildDuck();
        duck.display();
        duck.fly();
        duck.swim();
        duck.quack();
    }

}
